



foreach x in whtblack whthisp whtindnat male_female nohigh_high nohigh_somcol ///
	col_nohigh high_somcol col_high col_somcol {
	
	use "/projects/users/########/Snapshot2022/Results/`x'_compare.dta", clear

	keep if vble=="MeanDiff" | vble=="PctPos"
	drop *ATT

	reshape long d_empt_ d_wgt_ d_empc_ d_wgc_, i(vble) ///
		j(ev "tau0tau6" "tau1tau6" "pre1pre6" "pre3pre6" "tau0" "tau1" "tau2" "tau3" "tau4" "tau5" "tau6")
		
	replace ev = "pst0" if ev=="tau0tau6"
	replace ev = "pst1" if ev=="tau1tau6"
	
	sort vble ev
	
	export delim using "/projects/users/########/Snapshot2022/Results/`x'_compare.csv", delim(",") replace
}

